@extends('layouts.console_header')

@section('title', '结算详情')

@section('resources')
    @parent
    <link rel="stylesheet" href="{{env('CSS_DOMAIN')}}css/jquery.dataTables.min.css?v={{env('CSS_VERSION')}}">
    <style>
    	.shop_withdrawal_title{padding-left: 10px;border-left: 5px solid #9955c6;color: #9955c6;margin: 0 30px;}
    	.shop_withdrawal_ul{margin: 20px 30px;}
    	.shop_withdrawal_ul li{margin: 10px 0px;}
    </style>
@endsection

@section('content')
<section class="user_list">
	<div style="border-bottom: 2px solid #9955c6;overflow: hidden;">
		<p class="fz_14 account_title fl" style="border: none;"><span style="color: #7f7f7f;"><a href="/console/index">首页</a>>地推管理><a href="/console/salesman/shop/lists">地推商家列表</a>></span><span class="co_violet">结算详情</span></p>
		<a onclick="history.go(-1);" href="#"><p class="fr tc back_btn">返回</p></a>
		<a href="#"><p class="fr tc back_btn">导出</p></a>
	</div>
	<div style="background-color: #fff;padding-top: 20px;">
		<h3 class="shop_withdrawal_title">收款账号</h3>
		<ul class="shop_withdrawal_ul">
			<li>{{$info['cardholder']}}</li>
			<li>{{$info['bankname']}} {{$info['bankcard']}}</li>
			<li>{{$info['bankprovince']}}-{{$info['bankcity']}}-{{$info['opencardbank']}}</li>
		</ul>
		<h3 class="shop_withdrawal_title" style="margin-top: 30px;">结算列表</h3>
	    <table id="example" class="display" cellspacing="0" width="100%">
	        <thead>
	            <tr>
	                <th>序号</th>
	                <th>结算日期</th>
	                <th>提现金额</th>
	                <th>提现后的金额</th>
	            </tr>
	        </thead>
	        <tfoot>
	            <tr>
	                <th>序号</th>
	                <th>结算日期</th>
	                <th>提现金额</th>
	                <th>提现后的金额</th>
	            </tr>
	        </tfoot>
	        <tbody>
            @foreach($lists as $list)
	            <tr>
	            @if(!isset($i))
	            	<td>{{$i=1}}</td>
                @else
                    <td>{{++$i}}</td>
                @endif
	                <td>{{date('Y-m-d H:i:s', strtotime($list['accounttime']))}}</td>
	                <td>{{$list['accountamount']}}</td>
	                <td>{{$list['balance']}}</td>
	            </tr>
            @endforeach
	        </tbody>
	    </table>
	</div>
</section>
@endsection

@section('scriptResources')
    @parent
    <script src="{{env('JS_DOMAIN')}}js/jquery.dataTables.min.js?v={{env('JS_VERSION')}}"></script>
    <script>
    	$(function(){
    		
    	})
    </script>
@endsection